<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>反应速度测试</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
    <div class="container">
        <h1>反应速度测试</h1>
        <p class="instruction">当背景变成<span class="green-text">绿色</span>时，请立即点击屏幕！</p>
        <p class="instruction">当背景变成<span class="blue-text">蓝色</span>时，点击屏幕可以重新开始！</p>
        <div id="game-area" class="game-area waiting">
            <div id="game-message">点击此处开始</div>
            <div id="result-container" class="hidden">
                <p>你的反应时间: <span id="result">0</span> 毫秒</p>
                <p id="feedback"></p>
            </div>
        </div>
        <div class="stats">
            <p>最佳记录: <span id="best-time">-</span> 毫秒</p>
            <p>平均时间: <span id="average-time">-</span> 毫秒</p>
            <p>尝试次数: <span id="attempts">0</span></p>
        </div>
        <button id="reset-btn" class="hidden">重置统计</button>
    </div>
    <script src="{{ url_for('static', filename='script.js') }}"></script>
</body>
</html>